﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using RuleCode.Table;

namespace map.taobao
{
    public partial class selarea : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable a1;
            string sql = "";
            sql = " select recid,区编码 from varea3 where 省编码 =  '"
               + zfunction.Province + "'" ;
            string province = "";
            a1 = RuleCode.Common.SqlHelper.Instance.ExecuteQuery(sql).Tables[0];
            //province = a1.Rows[0][0].ToString();


            string s;
            s = "<div style =\"width:380px; \">";

            s += "<div id=\"area3\" style =\"width:380px;\">";
            foreach (DataRow item in a1.Rows)
            {
                s += "&nbsp;<a href=\"javascript:;\" onclick=\"selarea1('" + item["区编码"] + "')\">" + item["区编码"] + "</a>&nbsp;";          
            }
            s += "</div>"; 
            s += "<hr />";

            s += "<div id=\"area4\" style =\"width:380px;\">";
            s += "请先选择区域.";
            s += "</div>";

            s += "</div>";
            Response.Write(s);
            Response.End();
        }
    }
}
